package com.chint.springboot.model.pojo;

import java.util.Date;


import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Reservation)表实体类
 *
 * @author 黄小恒
 * @since 2024-11-12 08:40:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "reservation")
public class Reservation {


    //预订ID
    @Id
    @Column(name = "reservationId")
    private String reservationId;

    //客户ID
    @Column(name = "sfId")
    private String sfId;
    //房间ID
    @Column(name = "roomId")
    private Integer roomId;
    //入住日期
    @Column(name = "checkInDate")
    private Date checkInDate;
    //退房日期
    @Column(name = "checkOutDate")
    private Date checkOutDate;
    //总价
    @Column(name = "totalPrice")
    private Double totalPrice;
    //状态（已确认、已入住、已退房、已取消）
    @Column(name = "status")
    private Object status;
    //创建时间
    @Column(name = "createdAt")
    private Date createdAt;

}
